package com.demo.user.vo;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 登录记录
 * @TableName bl_user_login_log
 */
@Data
public class UserLoginLogVo implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer sid;

    /**
     * 
     */
    private Integer userId;

    /**
     * 
     */
    private Date loginTime;

    /**
     * 
     */
    private String loginIp;

    /**
     * 
     */
    private String loginPort;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 源院校站点ID
     */
    private Integer originSid;

    /**
     * 源表主键ID
     */
    private Integer originId;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserLoginLogVo other = (UserLoginLogVo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getLoginTime() == null ? other.getLoginTime() == null : this.getLoginTime().equals(other.getLoginTime()))
            && (this.getLoginIp() == null ? other.getLoginIp() == null : this.getLoginIp().equals(other.getLoginIp()))
            && (this.getLoginPort() == null ? other.getLoginPort() == null : this.getLoginPort().equals(other.getLoginPort()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getOriginSid() == null ? other.getOriginSid() == null : this.getOriginSid().equals(other.getOriginSid()))
            && (this.getOriginId() == null ? other.getOriginId() == null : this.getOriginId().equals(other.getOriginId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getLoginTime() == null) ? 0 : getLoginTime().hashCode());
        result = prime * result + ((getLoginIp() == null) ? 0 : getLoginIp().hashCode());
        result = prime * result + ((getLoginPort() == null) ? 0 : getLoginPort().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getOriginSid() == null) ? 0 : getOriginSid().hashCode());
        result = prime * result + ((getOriginId() == null) ? 0 : getOriginId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sid=").append(sid);
        sb.append(", userId=").append(userId);
        sb.append(", loginTime=").append(loginTime);
        sb.append(", loginIp=").append(loginIp);
        sb.append(", loginPort=").append(loginPort);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", originSid=").append(originSid);
        sb.append(", originId=").append(originId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}